import updateButtonStatus from "./updateButtonStatus";
import handlePK from "./handlePK";

export default function clearMainTableData() {
    handlePK.set('');
    this.setState({
        pageInfo: {
            pageSize: 10,
            pageIndex: 0,
            total: 0,
            totalPage: 1
        }
    }, () => {
        updateButtonStatus.call(this);
    });
    this.props.editTable.setTableData('disputedlist', {rows: []});
}
